package eu.liquify.ui {
	public class TargetList {
		private var actions:Array = [];
		public function TargetList() {}
		public function add(action:Object):void {
			actions.push(action);
		}
		public function execute(item:UIItem = null):void {
			for (var i:int = 0; i < actions.length; i++) {
				var action:Object = actions[i];
				if (action is Binding) {
					(action as Binding).pushToTarget();
				} else {
					Utils.callDynamic(action as Function, item);
				}
			}
		}
	}

}